package com.auxgroup.hr.front.service.process;

import com.auxgroup.hr.front.commons.vo.UserDTO;
import com.auxgroup.hr.front.dao.domain.PsCWfPlaveHdr;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 休假申请流程service
 */
public interface WfPlaveHdrService extends WfBaseApplyService<PsCWfPlaveHdr> {

    List<PsCWfPlaveHdr> querySaveds(String emplid, String keywords);


    /**
     * 查询申请中及申请通过的当月产检假总合
     *
     * @param emplid       员工工号
     * @param startDate    请假开始时间
     * @param pregnantTime 怀孕时长
     * @return
     */
    BigDecimal calcApplyPregnantTime(String emplid, Date startDate, String pregnantTime);

    /**
     * 考勤数据校验
     * @param laveReq
     * @param user
     * @return
     */
    String valide(PsCWfPlaveHdr laveReq, UserDTO user);
}
 